import http from "@/utils/request";

export const queryFavoriteList = ()=>{
    return http("/favorite/list",'get')
}

export const addFavorite = (chatHistoryId: number)=>{
    return http('/favorite/add', 'get', { chatHistoryId })
}

export const delFavorite = (id: number)=>{
    return http(`/favorite/del/${id}`)
}